home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 May / Macworld (1998-05).dmg / Shareware World / Comms & Internet / ProTERM_1.2.5.Install / ProTERM Mac1.2.5 / Extras / VT-102 F5-F12 Keys < prev   
Text File  |  1997-06-06  |  4KB  |  187 lines

  1. /***************************************
  2.  *                                     *
  3.  *  ProTERM/Mac Resident User F5-F12   *
  4.  *                                     *
  5.  *   Version 1202  Updated Apr 4, 1997 *
  6.  *                                     *
  7.  ***************************************/
  8.  
  9. /*
  10.  -- READ ME FIRST --
  11. This is a custom VT-102 macro template file which can be used to add F-keys
  12. beyond F1-F4. This set currently allows F5-F15 keys to be active, but only F5-F12 contain any sample commands. Follow the examples of the other keys to add your own commands. To install this set:
  13.  1- Open the service dialer that will be used with this macro set.
  14.  2- Click the Emulation radio button
  15.  3- Set Display to VT-102.
  16.  4- Set Keyboard: selection to Default.
  17.  5- Drag this file to the ProTERM > Macros folder.
  18.  6- Rename this file as "Resident User 1" (or 2, or other unused
  19.     “Resident Macro” number).
  20.  7- After placing this file in the ProTERM > Macros folder, or if you make
  21.     changes to the file, choose Save from the File menu and press:
  22.     COMMAND+OPTION+Z or restart ProTERM, to Reload the macro sets.
  23.  
  24. This complete set of F5-F12 VT-102 is set up as an example. You may find some of the keys suit your needs as they are. If not, you can change them to your custom needs by replacing the characters supplied, with the characters that allow you to use your needed commands.
  25. */
  26.  
  27. //
  28. // special "link" code just in case file is executed directly
  29. //
  30. FUNC main()
  31. {
  32.  SHARED STR _mac0;
  33.  EXTERN(_mac0,main(1));
  34.  RETURN;
  35. }
  36.  
  37. /***********************************************************************/
  38. /*                   Start of Startup Macros                           */
  39. /***********************************************************************/
  40.  
  41.  
  42. FUNC startup()
  43. {
  44. //
  45. // Add startup macro variables after this comment
  46. //
  47.  
  48. // leave this code unchanged
  49.  RESIDENT("",0,#KeyAccess+#LibAccess);
  50.  RETURN;
  51. }
  52.  
  53.  
  54. /***********************************************************************/
  55. /*                   Start of Keyboard Macros                          */
  56. /***********************************************************************/
  57.  
  58.  
  59. /*
  60. Custom Macro Set for Custom VT-102
  61.  
  62.  F-Key  Print        Description
  63.  ___________________________________
  64.   F5     Quit        Quit
  65.   F6    ^[B        Escape B
  66.   F7    ^R        Control-R
  67.   F8    ^B        Control-B
  68.   F9    ^[W        Escape W
  69.  F10    ^[D        Escape D
  70.  F11    ^[A        Escape A
  71.  F12    ^[T        Escape T
  72. */
  73.  
  74. //
  75. // F5 macro: Insert desired keyboard code within quotes in PR() statement.
  76. //
  77. func ktr_0060()
  78. {
  79.  PR("quit");
  80.  RETURN;
  81. }
  82.  
  83.  
  84. //
  85. // F6 macro: Insert desired keyboard code within quotes in PR() statement.
  86. //
  87. FUNC ktr_0061()
  88. {
  89.  PR("^[B");
  90.  RETURN;
  91. }
  92.  
  93.  
  94. //
  95. // F7 macro: Insert desired keyboard code within quotes in PR() statement.
  96. //
  97. FUNC ktr_0062()
  98. {
  99.  PR("^R");
  100.  RETURN;
  101. }
  102.  
  103.  
  104. //
  105. // F8 macro: Insert desired keyboard code within quotes in PR() statement.
  106. //
  107. FUNC ktr_0064()
  108. {
  109.  PR("^B");
  110.  RETURN;
  111. }
  112.  
  113.  
  114. //
  115. // F9 macro: Insert desired keyboard code within quotes in PR() statement.
  116. //
  117. FUNC ktr_0065()
  118. {
  119.  PR("^[W");
  120.  RETURN;
  121. }
  122.  
  123.  
  124. //
  125. // F10 macro: Insert desired keyboard code within quotes in PR() statement.
  126. //
  127. FUNC ktr_006d()
  128. {
  129.  PR("^[D");
  130.  RETURN;
  131. }
  132.  
  133.  
  134. //
  135. // F11 macro: Insert desired keyboard code within quotes in PR() statement.
  136. //
  137. FUNC ktr_0067()
  138. {
  139.  PR("^[A");
  140.  RETURN;
  141. }
  142.  
  143.  
  144. //
  145. // F12 macro: Insert desired keyboard code within quotes in PR() statement.
  146. //
  147. FUNC ktr_006f()
  148. {
  149.  PR("^[T");
  150.  RETURN;
  151. }
  152.  
  153.  
  154. //
  155. // F13 macro: Insert desired keyboard code within quotes in PR() statement.
  156. //
  157. FUNC ktr_0069()
  158. {
  159.  PR("F13  add your own assignment to the Resident User set.");
  160.  RETURN;
  161. }
  162.  
  163.  
  164. //
  165. // F14 macro: Insert desired keyboard code within quotes in PR() statement.
  166. //
  167. FUNC ktr_006b()
  168. {
  169.  PR("F14 add your own assignment to the Resident User set.");
  170.  RETURN;
  171. }
  172.  
  173.  
  174. //
  175. // F15 macro: Insert desired keyboard code within quotes in PR() statement.
  176. //
  177. FUNC ktr_0071()
  178. {
  179.  PR("F15 add your own assignment to the Resident User set.");
  180.  RETURN;
  181. }
  182.  
  183. /*
  184.  Last Updated: Apr 16, 1997
  185.  ©1997 InTrec Software, Inc.
  186. */
  187.